package javolution.testing;

/* loaded from: classes2.dex */
public class AssertionException extends RuntimeException {
    private static final long serialVersionUID = 1;
    private Object _actual;
    private Object _expected;
    private String _message;

    public AssertionException(String str, Object obj, Object obj2) {
        this._message = str;
        this._expected = obj;
        this._actual = obj2;
    }

    public Object getActual() {
        return this._actual;
    }

    public Object getExpected() {
        return this._expected;
    }

    @Override // java.lang.Throwable
    public String getMessage() {
        return this._message;
    }

    @Override // java.lang.Throwable
    public String toString() {
        StringBuilder sb;
        if (this._message != null) {
            sb = new StringBuilder();
            sb.append(this._message);
            sb.append(": ");
        } else {
            sb = new StringBuilder();
        }
        sb.append(this._expected);
        sb.append(" expected but found ");
        sb.append(this._actual);
        return sb.toString();
    }
}
